<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html >
<html>
<head>
<title>选择教师</title>
<t:base type="jquery,easyui,tools"></t:base>
</head>
<body style="overflow-y: hidden" scroll="no">
<t:datagrid  pagination="true"  name="teacherList" title="选择教师" 
			 actionUrl="teacherController.do?select" idField="id" 
 			checkbox="false" showRefresh="false"  fit="true"  queryMode="group"  >
	<t:dgCol title="common.id" field="id" hidden="true"></t:dgCol>
	<t:dgCol title="工号" field="staffNo" width="250" query="true" ></t:dgCol> 
	<t:dgCol title="姓名" field="realName" width="250" query="true" ></t:dgCol>
</t:datagrid>
</body>
<script>
	function getData(){
		var rows = $('#teacherList').datagrid('getSelections');
		if(rows.length==0){
			tip("请选择教师!")
			return;
		}
		return rows;
	}
</script>
</html>
 